package com.markerhub.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @author jsx on 2023/2/13
 **/
@Data
@TableName("sys_food")
public class SysFood {

    // 主键
    @TableId(value = "id" ,type = IdType.ASSIGN_ID)
    private String id;

    // 食品名称
    @ExcelProperty(value = "食物名称")
    @TableField(value = "name")
    private String name;

    // 描述
    @ExcelProperty(value = "描述")
    @TableField(value = "description")
    private String description;

    // 1斤所占比重的糖类含量简化为整数
    @ExcelProperty(value = "糖类含量/斤")
    @TableField(value = "glucose")
    private Integer glucose;

    // 1斤所占比重的蛋白质含量简化整数
    @ExcelProperty(value = "蛋白质含量/斤")
    @TableField(value = "protein")
    private Integer protein;

    // 1斤所占比重的脂肪含量简化整数
    @ExcelProperty(value = "脂肪含量/斤")
    @TableField(value = "fat")
    private Integer fat;

    // 1斤所占比重的微量元素含量简化整数 如：维生素等
    @ExcelProperty(value = "微量元素含量/斤")
    @TableField(value = "inorganic_salt")
    private Integer inorganicSalt;

    // 1斤所占的卡路里量
    @ExcelProperty(value = "卡路里含量/斤")
    @TableField(value = "calorie")
    private Integer calorie;

    //疾病不宜
    @ExcelProperty(value = "疾病不宜")
    @TableField(value = "sick")
    private String sick;

    // 用户输入几斤
    @TableField(exist = false)
    private Integer num;
}
